<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="js/vendor/jquery-1.11.3.min.js"></script>
    <script>
        function getCookie(key){
            var cookie = document.cookie;
            var s = cookie.replace("; ","=");
            while (s.indexOf(";") != -1){
                s = s.replace("; ","=");
            }
            var strings = s.replace("; ","=").split("=");
            if (strings.indexOf(key) == -1){
                return null;
            }
            return strings[strings.indexOf(key) + 1].trim();
        }

        window.onload=function () {
            $.ajax({
                url: "http://localhost:8083/order/AliPay",
                type: "POST",
                data: {orderId: getCookie("ORDER")},
                success: function (data) {
                    document.write(data);
                }
            });
        }

    </script>
</head>
<body>

</body>
</html>